//
//  YJWebViewController.m
//  练习
//
//  Created by hcios on 2017/7/7.
//  Copyright © 2017年 hcios. All rights reserved.
//

#import "YJWebViewController.h"

@interface YJWebViewController ()

@end

@implementation YJWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    //自动调整子控件在父控件中的位置
    webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;  //自动调整自己的高度和宽度
    webView.scrollView.bounces = NO;
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://m.ctrip.com/html5/you/operations/app.html"]]];
    [self.view addSubview:webView];
}



@end
